#include <catch2/catch.hpp>

#include <array>
#include "solution.hpp"

using namespace solution_055;

TEST_CASE("55. Jump Game", "[055]")
{

SECTION("example 1") { std::vector nums{2,3,1,1,4}; CHECK(Solution().canJump(nums) == true);  }
SECTION("example 2") { std::vector nums{3,2,1,0,4}; CHECK(Solution().canJump(nums) == false); }
SECTION("example 3") { std::vector nums{1,0,2,0,4}; CHECK(Solution().canJump(nums) == false); }
SECTION("example 4") { std::vector nums{0};         CHECK(Solution().canJump(nums) == true);  }
SECTION("example 5") { std::vector nums{3,0,0,0};   CHECK(Solution().canJump(nums) == true);  }

}
